package com.css.dzj.dzjdzqs.modules.apaction.aprandomplan.entity;

import javax.persistence.*;
import java.util.Objects;

//JG_ZTK_JGXN_SSJYGK_NDJHSJ 双随机一公开数据的年度计划数据
@Entity
@Table(name = "JG_ZTK_JGXN_SSJYGK_NDJHSJ", schema = "DZJJH", catalog = "")
public class JgZtkJgxnSsjygkNdjhsjEntity {
    private String planId;
    private String planName;
    private String year;
    private String areaName;
    private String areaNumber;
    private String superviseDept;
    private String sampleInspectionRatio;

    @Id
    @Column(name = "Plan_ID")
    public String getPlanId() {
        return planId;
    }

    public void setPlanId(String planId) {
        this.planId = planId;
    }

    @Basic
    @Column(name = "Plan_Name")
    public String getPlanName() {
        return planName;
    }

    public void setPlanName(String planName) {
        this.planName = planName;
    }

    @Basic
    @Column(name = "Year")
    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    @Basic
    @Column(name = "Area_Name")
    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    @Basic
    @Column(name = "Area_Number")
    public String getAreaNumber() {
        return areaNumber;
    }

    public void setAreaNumber(String areaNumber) {
        this.areaNumber = areaNumber;
    }

    @Basic
    @Column(name = "Supervise_Dept")
    public String getSuperviseDept() {
        return superviseDept;
    }

    public void setSuperviseDept(String superviseDept) {
        this.superviseDept = superviseDept;
    }

    @Basic
    @Column(name = "Sample_Inspection_Ratio")
    public String getSampleInspectionRatio() {
        return sampleInspectionRatio;
    }

    public void setSampleInspectionRatio(String sampleInspectionRatio) {
        this.sampleInspectionRatio = sampleInspectionRatio;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        JgZtkJgxnSsjygkNdjhsjEntity that = (JgZtkJgxnSsjygkNdjhsjEntity) o;
        return Objects.equals(planId, that.planId) &&
                Objects.equals(planName, that.planName) &&
                Objects.equals(year, that.year) &&
                Objects.equals(areaName, that.areaName) &&
                Objects.equals(areaNumber, that.areaNumber) &&
                Objects.equals(superviseDept, that.superviseDept) &&
                Objects.equals(sampleInspectionRatio, that.sampleInspectionRatio);
    }

    @Override
    public int hashCode() {
        return Objects.hash(planId, planName, year, areaName, areaNumber, superviseDept, sampleInspectionRatio);
    }
}
